package com.jhh.pay.center.log;

import com.alibaba.fastjson.annotation.JSONField;
import com.jhh.pay.center.search.AbstractMapping;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author tangxd
 * @Description: TODO
 * @date 2017/12/4
 */
@Getter
@Setter
public class OrderLog extends AbstractMapping<String> implements Serializable {
    public OrderLog(String id,
                    String orderNo,
                    String operate,
                    String msg,
                    String source) {
        this.setId(id);
        this.orderNo = orderNo;
        this.operate = operate;
        this.msg = msg;
        this.source = source;
    }

    @JSONField(name = "order_no")
    private String orderNo;
    @JSONField(name = "operate")
    private String operate;
    @JSONField(name = "event_time")
    private Date eventTime = new Date();
    @JSONField(name = "msg")
    private String msg;
    @JSONField(name = "source")
    private String source;
    @JSONField(name = "ext")
    private Map<String, Object> extension = new TreeMap<>();
}
